<template>
     <router-view></router-view>
</template>

<script setup>
import { watch, nextTick, ref } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

const visible = ref(false)
watch(
    () => router.currentRoute.value,
    () => {
        visible.value = false
        nextTick(() => {
            visible.value = true
        })
    }
)
</script>

